<div>
  <weui-loadmore [type]="'loading'" *ngIf="!first||!chenge"></weui-loadmore>
  <div *ngIf="first">
    <!-- <div class="weui-cell weui-cell_switch switch">
      <div class="weui-cell__bd">只显示有号的日期</div>
      <div class="weui-cell__ft">
        <label for="switchCP" class="weui-switch-cp">
          <input [(ngModel)]="cho2" id="switchCP" class="weui-switch-cp__input" type="checkbox" name="cho1">
          <div class="weui-switch-cp__box"></div>
        </label>
      </div>
    </div> -->
    <!--<div class="weui-cell weui-cell_switch">
  <div class="weui-cell__bd"></div>
 <div class="weui-cell__ft">
    <input class="weui-switch-cp__input" type="checkbox"  name="cho1" (click)="sb()">
  </div>
</div>-->
    <div *ngFor="let item of schedulingdate,let i = index;" class="weui-flex">
      <div class="weui-flex__item leftimg" style="text-align: center">
        <img src="assets/img/arrow_bg.svg" *ngIf="i!=page&&i!=0" style="margin-top: 12px" (click)="previous(i)">
        <img src="assets/img/arrow.svg" *ngIf="i==page-1" style="margin-top: 12px;">
      </div>
      <div *ngFor="let dates of item,let j = index" class="weui-flex__item" style="text-align: center">
        <div *ngIf="i!=page" (click)="getSchedulingList(dates.date,i,j)" [ngClass]="{'text': i ==dateindexi && j == dateindexj}"
          class="placeholder text">
          <div class="hhh">{{dates.date |date:'MM-dd'}}
            <br>{{dates.week}}</div>
        </div>
      </div>
      <div class="weui-flex__item" style="text-align: center">
        <img src="assets/img/arrow_bg.svg" *ngIf="i!=page&&i!=cho1" style="margin-top: 12px;" (click)="next(i)">
        <img src="assets/img/arrow.svg" *ngIf="i==page+1" style="margin-top: 12px;">
      </div>
    </div>
  </div>
  <div class="weui-cells list-group" style="margin-top:0px">
    <a *ngFor="let sch of schedulinglist,let i =index" (click)="doRegister(i)">
      <div class="weui-cell weui-cell_access list-group-item" *ngIf="sch?.YS!=''">
        <div class="weui-media-box__hd">
          <img class="weui-media-box__thumb imgx" src='assets/img/doctor.png' (click)="doctorIndex()">
        </div>
        <div class="weui-cell__bd">
          <div>
            <label class="left">{{sch?.YS}}</label>
            <label class="item right haves">{{sch?.FWMC}}</label>
          </div>
          <div>
            <label class="left small">{{sch?.ZC}}</label>
            <label class="item right small" style="padding-top: 3px;">{{sch?.DJ}}.00元</label>
          </div>
        </div>
        <div class="weui-cell__ft">
        </div>
      </div>
    </a>
  </div>
</div>